const { router } = require('../../koa/koa-main')
const { deleteComment } = require('../../services/comment')

router.post('/deleteComment', async (ctx, next) => {
  const { data } = await deleteComment(ctx.request.body)
  ctx.response.body = data
  await next()
})
